
 class Person {
   int id;
   int age;



     public void setId(int id) {
         this.id = id;
     }

     public void eat(){
       System.out.println(id+"张义爱吃粑粑");
   }
   public void drink(){
       System.out.println(id+"张义爱喝尿");
   }
}
class Student extends Person{
    int schoolid;




    public void study(){
        System.out.println(id+"张义爱背刺");
    }
}
public class Demo01 {
    public static void main(String[] args) {
        Person p = new Person();
        Student s = new Student();
        p.setId(2);
        s.setId(3);
        p.eat();
        p.drink();
        s.eat();
        s.drink();
        s.study();
    }
}
